// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.NotificationDao;
import com.liuxinlong.modules.entity.Notification;
import com.liuxinlong.modules.mapper.NotificationMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年8月16日
 */
@Service
public class NotificationDaoImpl extends ServiceImpl<NotificationMapper, Notification> implements NotificationDao {
    @Override
    public List<Notification> pageNotification(Map<String, Object> queryParam) {
        return baseMapper.pageNotification(queryParam);
    }

    @Override
    public int getNotificationCount(Map<String, Object> queryParam) {
        return baseMapper.getNotificationCount(queryParam);
    }

    @Override
    public List<Notification> queryInteractiveNotification(Map<String, Object> queryParam) {
        return baseMapper.queryInteractiveNotification(queryParam);
    }

    @Override
    public void updateState(String id) {
        baseMapper.updateState(id);
    }

    @Override
    public void updateAllState(String userId,String dealTime) {
        baseMapper.updateAllState(userId,dealTime);
    }

    @Override
    public void revokeByRecordId(String recordId) {
        baseMapper.revokeByRecordId(recordId);
    }
}
